<?php
namespace system\model;

use hdphp\Model\Model;

class Keyword extends Model {
	//数据表
	protected $table = "keywords";

	//自动验证
	protected $validate
		= [
			[ 'keyword', 'required', '内容不能为空', self::MUST_VALIDATE, self::MODEL_BOTH ],
			[ 'module', 'required', '模块不能为空', self::MUST_VALIDATE, self::MODEL_BOTH ],
		];

	//自动完成
	protected $auto
		= [
			//['字段名','处理方法','方法类型',验证条件,验证时机]
		];

	//自动过滤
	protected $filter
		= [
			//[表单字段名,过滤条件,处理时间]
		];
}